const Mock = require('mockjs')
const M = Mock.Random
/*
const Random = Mock.Random;
例如：M.id()

Basics: boolean, natural, integer, float, character, string, range, date, time, datetime, now
Image:  image, dataImage
Color:  color
Text: paragraph, sentence, word, title
Name: first, last, name
Web:  url, domain, email, ip, tld
Address:  area, region
Helpers:  capitalize, upper, lower, pick, shuffle
Miscellaneous:  guid, id
*/
module.exports = {
  /*###################################
   模拟接口
  //###################################*/
  '/course/courseList': Mock.mock({
    message: '提示信息',
    result: 'success',
    data: {
      'list|10': [
        {
          id: '@id',
          'name|+1': ['1李宽', '2李宽', '3李宽'],
          'rate|1': '20.00',
          'grade|+1': ['三年级'],
          'category|1': ['3', '2', '5']
        }
      ],
      total: 200
    },
    code: 0,
    success: true
  })
}
